<?php

namespace app\api\validate;

use think\Validate;

class Dymanic extends Validate
{
    protected $rule = [
        ['dymanic_id',      'require|number|>:0',           '请先选择视频|请先选择视频|请先选择视频'],
        ['user_id',         'number|>:0',                   '请先登陆|请先登陆'],
        ['longitude',       'require',                      '未获取到当前经度'],
        ['latitude',        'require',                      '未获取到当前纬度'],
        ['page',            'number|>=:0',                  '当前页出错|当前页出错'],
    ];

    protected $scene = [
        'click'         => ['dymanic_id'],
        'index'         => ['user_id'],
        'lists'         => ['page', 'longitude', 'latitude'],
    ];
}
